vr2-5-14.wrl


[ VRML source code ]

#VRML V2.0 utf8
#vr2-5-14.wrl
Transform {
  translation 0 0 -7
  rotation 1 0 0 -1.57079
  children Inline {
    url "vr2-4-04.wrl"
  }
}
Group {
  children [
    Viewpoint { position 0 0 40 }
    Group {
      children [
	DEF VO1_DRAG PlaneSensor {
	  minPosition 0 18
	  maxPosition 0 25
	}
	DEF VO1 Transform {
	  translation 0 20 0
          scale 0.4 0.4 0.4
          children Inline { url "vr2-3-23.wrl" }
	}
      ]
    }
  ]
}
ROUTE VO1_DRAG.translation_changed TO VO1.set_translation
Group {
  children [
    DEF VO2_DRAG PlaneSensor {
      minPosition 3 0
      maxPosition 10 2
    }
    DEF VO2 Transform {
      translation 10 0 0
      rotation 1 0 0 -1
      scale 0.3 0.3 0.3
      children [
        #file 
        Transform {
          scale 1 4 1
          children Shape {
            appearance Appearance {
              texture ImageTexture {
                url "wood.gif"
              }
            }
            geometry Sphere { radius 3 }
          }
        }
        Transform {
          translation 0 20 0
          children Shape {
            appearance Appearance {
              texture ImageTexture {
                url "stone.gif"
              }
            }
            geometry Box { size 6 30 2 }
          }
        }
      ]
    }
  ]
}
ROUTE VO2_DRAG.translation_changed TO VO2.set_translation